package com.zhengxin.one.service.impl;

import com.zhengxin.one.entity.Compensate;
import com.zhengxin.one.mapper.CompensateMapper;
import com.zhengxin.one.service.CompensateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CompensateServiceIpml implements CompensateService {
    @Autowired
    CompensateMapper compensateMapper;

    @Override
    public String getSoCompensate(String company_id) {
        return compensateMapper.soCompensate(company_id);
    }

    @Override
    public String getCoCompensate(String company_id) {
        return compensateMapper.coCompensate(company_id);
    }

    @Override
    public List<Compensate> penfind(int type,String company_id, String status, String keyword) {
        return compensateMapper.penfind(type,company_id,status,keyword);
    }

    @Override
    public Map penperfind(String id_card) {
        return compensateMapper.penperfind(id_card);
    }

    @Override
    public int pendele(String id_card) {
        return compensateMapper.pendele(id_card);
    }

    @Override
    public int penup(Compensate compensate) {
        return compensateMapper.penup(compensate);
    }

    @Override
    public int pendata(Compensate compensate) {
        return compensateMapper.pendata(compensate);
    }

    @Override
    public int penback(String id_card) {
        return compensateMapper.penback(id_card);
    }
}

